package Mirror;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;






public class DailyMirrorHomePage {



private WebDriver driver;
public  DailyMirrorHomePage(WebDriver driver) {
	
	this.driver =driver;

	}

public Euro2012 clickHotTopicLink(){
	driver.get("http://www.mirror.co.uk");
	WebElement hotTopic = driver.findElement(By.linkText("Euro 2012"));
	hotTopic.click();
	return new Euro2012(driver);

}



}
